package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.kly.user.db.dao.UserMsgListDao;
import com.kly.user.db.entity.UserMsgListEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;

/**
* User: linqu
* Date: 2024-01-02
* Time: 10:19:29.688
*/

@Repository
public class UserMsgListDaoImpl extends AbstractBaseMapper<UserMsgListEntity> implements UserMsgListDao {

    @Override
    public int updateReplyTimesIfChatterReplied(String fromUserCode, String toUserCode) {
        final HashMap<String, Object> params = Maps.newHashMap();
        params.put("fromUserCode", fromUserCode);
        params.put("toUserCode", toUserCode);
        return this.getSqlSession().update(this.getStatement("updateReplyTimesIfChatterReplied"), params);
    }
}